//
//  ChanViewController.m
//  LOLVideoPlayer
//
//  Created by SXW on 16/3/29.
//  Copyright © 2016年 盛宣伟. All rights reserved.
//

#import "ChanViewController.h"
#import "SCNavTabBarController.h"

#import "MySelfViewController.h"
#import "MasterViewController.h"
#import "GamePlayViewController.h"
#import "ColumViewController.h"
#import "TeamsViewController.h"
#import "DirectViewController.h"

@interface ChanViewController ()

@end

@implementation ChanViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden = NO;
    self.title = @"分类";
    SCNavTabBarController *navTabBarController = [[SCNavTabBarController alloc] init];
    MySelfViewController *last = [[MySelfViewController alloc] init];
    //    last.view.backgroundColor = [UIColor redColor];
    last.title = @"解说";
//    last.view.backgroundColor = [UIColor redColor];
    MasterViewController *act = [[MasterViewController alloc] init];
    act.title = @"高手";
    GamePlayViewController *match = [[GamePlayViewController alloc] init];
    match.title = @"比赛";
    ColumViewController *video = [[ColumViewController alloc] init];
    video.title = @"专栏";
    TeamsViewController *fun = [[TeamsViewController alloc] init];
    fun.title = @"战队";
//    DirectViewController *girl = [[DirectViewController alloc] init];
//    girl.title = @"直播";
    navTabBarController.subViewControllers = @[last, act, match, video, fun];
    navTabBarController.showArrowButton = NO;
    
    //根视图的整体背景色
    self.view.backgroundColor = [UIColor colorFromHexRGB:@"000000"];
    //滑动条的背景颜色
    navTabBarController.navTabBarColor = [UIColor clearColor];
   
    [navTabBarController addParentController:self];
    
}

//- (void)viewWillAppear:(BOOL)animated{
//    
//    [super viewWillAppear:animated];
//    self.navigationController.navigationBarHidden = NO;
//}
























- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
